package com.lau.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lau.pojo.TSysUser;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 系统_用户认证 Mapper 接口
 * </p>
 *
 * @author Lau
 * @since 2022-12-07
 */
public interface TSysUserMapper extends BaseMapper<TSysUser> {

    @Select("select * from t_sys_user where username like \"%\" #{name}")
    List<TSysUser> queryUserListByName(String name);

    List<TSysUser> queryUserListByCondition(String userName,String loginName);

    List<TSysUser> pageUserListByCondition(String userName,String loginName, IPage page);
}
